package org.mm.xml;

import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import org.mm.xml.entities.MeasurementXML;
import org.mm.xml.entities.PatientXML;
import org.mm.xml.entities.SensorXML;

@XmlRootElement(name = "response")
@XmlType(propOrder={"patient", "sensor", "measurement"})
public class MeasurementResponseXML extends ResponseXML {

	private PatientXML patient = null;
	private SensorXML sensor = null;
	private MeasurementXML measurement = null;

	/**
	 * getPatient
	 * @return patient
	 */
	public PatientXML getPatient() {
		return patient;
	}

	/**
	 * setPatient
	 * @param patient
	 */
	public void setPatient(PatientXML patient) {
		this.patient = patient;
	}

	/**
	 * getMeasurement
	 * @return measurement
	 */
	public MeasurementXML getMeasurement() {
		return measurement;
	}

	/**
	 * setMeasurement
	 * @param measurement
	 */
	public void setMeasurement(MeasurementXML measurement) {
		this.measurement = measurement;
	}

	/**
	 * getSensor
	 * @return sensor
	 */
	public SensorXML getSensor() {
		return sensor;
	}

	/**
	 * setSensor
	 * @param sensor
	 */
	public void setSensor(SensorXML sensor) {
		this.sensor = sensor;
	}

	@Override
	public void clear() {
		this.measurement = null;
		this.patient = null;
		this.sensor = null;
	}

}
